<%= error_messages_for :team %>
<div class="message">
To add a new team to project <%=h @project.name %> enter the username for the person that will
be the team lead for that team. Hint: the username is the same as their email username.
<BR><BR>
If the team lead has direct reports, this wizard can automatically populate those
employees into the new team that is created. If you would like to auto populate this team,
make sure to check the "Populate Team from Directory" check box.
</div>      <BR><BR>  
          
<% form_for :team, :url => { :action => :create } do |form| %> 


<p>Team Lead Username: <%= form.text_field 'username' %> </p>
<p>  Populate Team from Directory:  <%= form.check_box "use_directory", {}, "yes", "no" %></p>
<%= form.hidden_field('project_id', {:value => @project.id}) %>

<BR><BR>
  <%= form.submit "Create Team" %>   

   <%= link_to("Never mind", :controller => "teams", :action => "for_project", :id => @project.id) %> 



<% end %>